package com.winter.Controller;

import com.winter.service.IindudyReportPolicyService;
import com.winter.util.Result;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 模块
 */

@RestController
@RequestMapping("v1/information")
public class IindudyReportPolicyController {

    @Autowired
    public IindudyReportPolicyService iindudyReportPolicyService;

    /**
     * 查看资讯列表
     */
    @GetMapping
    public Result informationList(Integer pageSize, Integer pageNumber, String type, String key) {
        return iindudyReportPolicyService.informationList(pageSize, pageNumber, type, key);
    }

    /**
     * 查看资讯详情
     */
    @GetMapping("details")
    public Result informationDetails(Long id, String userNo) {
        return iindudyReportPolicyService.informationDetails(id, userNo);
    }


}
